<#include "../../common/commonattribute.html"/>
<script>
$(document).on('bjui.beforeCloseDialog', function(e) {
        $(".search-frametable").click();
    })
</script>
<div class="bjui-pageContent">

    <form action="${ctx}/frame/frametable/save" id="familyMemberDialog" data-no-check="true" name="familyForm"
          data-toggle="validate" data-alertmsg="false" data-isrefsh="false" data-callback="fmDialogClose"
          data-rule="required">
        <div style="margin:25px auto 0; width:500px;">

            <input type="hidden" name="id" value="${entity.id!}"/>
            <table width="100%"  class="table table-condensed table-hover">

                <tr>
                    <td class="right"><span style="color:red">*</span>字段名</td>
                    <td class="left"><input type="text" name="fieldName" data-rule="required" value="${entity.fieldName!}"></td>
                </tr>
                <tr>
                    <td class="right"><span style="color:red">*</span>字段类型</td>
                    <td class="left">
                        <select   data-toggle="selectpicker" data-rule="required" name="fieldType" data-rule="required" class="selectpicker" data-width="100">
                            <option value="varchar" <#if "varchar"=(entity.fieldType!)>selected="true"</#if>>varchar</option>
                            <option value="datetime" <#if "datetime"=(entity.fieldType!)>selected="true"</#if>>datetime</option>
                            <option value="int" <#if "int"=(entity.fieldType!)>selected="true"</#if>>int</option>
                            <option value="numeric" <#if "numeric"=(entity.fieldType!)>selected="true"</#if>>numeric</option>
                        </select></td>
                </tr>
                <tr>
                    <td class="right"><span style="color:red">*</span>字段长度</td>
                    <td class="left">
                        <input type="text" name="fieldLength" data-rule="required" value="${entity.fieldLength!}">

                    </td>
                </tr>
                <input type="hidden" name="tableId"  value="${entity.tableId!}">
                <!--<tr>-->
                    <!--<td class="right"><span style="color:red">*</span>表ID</td>-->
                    <!--<td class="left"><input type="text" name="tableId" data-rule="required" value="${entity.tableId!}"></td>-->
                <!--</tr>-->
                <tr>
                    <td class="right"><span style="color:red">*</span>字段备注</td>
                    <td class="left"><input type="text" name="fieldMark" data-rule="required" value="${entity.fieldMark!}"></td>
                </tr>



            </table>

        </div>
    </form>

</div>
<div class="bjui-pageFooter">
    <ul>
        <li><button type="button" class="btn-close">关闭</button></li>
        <li><button type="submit" class="btn-default">保存</button></li>
    </ul>
</div>